/*
 * @Author: fisher
 * @Date: 2022-12-21 21:01:01
 * @LastEditTime: 2022-12-22 11:32:21
 * @LastEditors: your name
 * @Description:
 * @FilePath: /vite-vue-ts-h5/src/utils/jsbridge/index.ts
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { getDeviceType } from '@/utils/utils'
import android from './android'
import ios from './ios'
import develop from './develop'

let result: any
if (import.meta.env.MODE === 'development') {
  result = develop
} else {
  switch (getDeviceType()) {
    case 'android':
      result = android
      break
    case 'ios':
      result = ios
      break
    default:
      result = develop
  }
}

export default result
